import request from "api";

export function getAllEquipClass(page){
    return request({
        method:"get",
        url:"/DevicesType/getAllDevicesType",
        params:{
            PageIndex:page.index || "",
            PageSize:page.PageSize || ""
        }
    })
}

export function addEquipClass(form){
    return request({
        method:"post",
        url:"/DevicesType/add",
        data:{
            manufacturers:form.Manufacturers,
            model_number:form.ModelNumber,
            Id:form.Id,
            // device_id:1138
        }
    })
}

export function deleteEquipClass(device_id){
    return request({
        method:"delete",
        url:"/DevicesType/delete",
        params:{
            Id:device_id
        }
    })
}

export function editEquipClass(form){
    return request({
        method:"post",
        url:"/DevicesType/modify",
        data:{
            manufacturers:form.Manufacturers,
            model_number:form.ModelNumber,
            Id:form.Id,
            device_id:form.DeviceId
        }
    })
}

